import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
    {
        path: '/',
        name: 'Home',
        redirect: '/bookmarks',
        component: () => import('@/views/layout/Layout.vue'),
        children: [
            {
                path: '/bookmarks',
                name: 'Bookmarks',
                component: () => import('@/views/bookmarks/Bookmarks.vue')
            },
            {
                path: '/favorite',
                name: 'Favorite',
                component: () => import('@/views/favorite/Favorite.vue')
            },
            {
                path: '/history',
                name: 'History',
                component: () => import('@/views/history/History.vue')
            }, {
                path: '/download',
                name: 'Download',
                component: () => import('@/views/download/Download.vue')
            }, {
                path: '/rubbish',
                name: 'Rubbish',
                component: () => import('@/views/rubbish/Rubbish.vue')
            }, {
                path: '/manage',
                name: 'Manage',
                component: () => import('@/views/manage/Manage.vue')
            }
        ]
    },

]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router
